package com.hgts.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * <p>
 * 
 * </p>
 *
 * @author 凡哥哥
 * @since 2023-05-14
 */
@Getter
@Setter
@Data
@TableName("sys_comment")
@ToString
public class Comment implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
    * 用户id
    */
    private Integer userId;
    /**
    * 点赞数量
    */
    private Integer likes;
    /**
     * 用户是否点赞
     */
    @TableField(exist = false)
    private Boolean isLike;

    private Integer commentId;


    private String comment;

    private String userNickname;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    private Long bookId;



}
